//
//  TTVNetworkConfig.h
//  TouchTV
//
//  Created by rhc on 16/9/2.
//  Copyright © 2016年 AceWei. All rights reserved.
//

#ifndef TTVNetworkConfig_h
#define TTVNetworkConfig_h


#define TTVNetWork_AppVersion       @"appVersion"
#define TTVNetWork_Authorization    @"Authorization"
#define TTVNetWork_AppClient        @"appClient"
#define TTVNetWork_AppSource        @"NEWS_APP"
#define TTVNetWork_iOS              @"ios"
#define TTVNetWork_InstallChannel   @"app store"

// API-authentication.md

#define TTVNetWork_AppKey           @"X-ITOUCHTV-Ca-Key"
#define TTVNetWork_AppKeyValue      @"71172577798798836911906857925786"
#define TTVNetWork_AppTimestamp     @"X-ITOUCHTV-Ca-Timestamp"
#define TTVNetWork_AppSign          @"X-ITOUCHTV-Ca-Signature"
#define TTVNetWork_AppSecret        @"1VP0NCmPa3KoL87FLJvCdbPaIJlqHOlce2ruxNL394UnsuygrzBGbDv7iqQo0Z5T"
#define TTVNetWork_DeviceIDKey      @"X-ITOUCHTV-DEVICE-ID"
#define TTVNetWork_UserIDKey        @"X-ITOUCHTV-USER-ID"
#define TTVNetWork_VERSION          @"X-ITOUCHTV-APP-VERSION"
#define TTVNetWork_AppClientSource  @"X-ITOUCHTV-CLIENT"
#define TTVNetWork_AuthorizationKey @"Authorization"
#define TTVNetWork_InstallChannelKey @"X-ITOUCHTV-INSTALL-CHANNEL"
#define TTVNetWork_Resolution      @"X-ITOUCHTV-RESOLUTION"
#define TTVNetWork_UA              @"X-ITOUCHTV-WEBVIEW-UA"
#define TTVNetWork_ConnType        @"X-ITOUCHTV-CONN-TYPE"

//定位相关
#define TTVNetWork_Pcode           @"X-ITOUCHTV-PCODE"
#define TTVNetWork_Ccode           @"X-ITOUCHTV-CCODE"
#define TTVNetWork_Acode           @"X-ITOUCHTV-ACODE"
//广告相关
#define TTVNetWork_MAC               @"X-ITOUCHTV-MAC"
#define TTVNetWork_OSVS               @"X-ITOUCHTV-OSVS"
#define TTVNetWork_TERM               @"X-ITOUCHTV-TERM"
#define TTVNetWork_IDFA               @"X-ITOUCHTV-IDFA"

#define TTVNetWork_AcceptableContentType_ApplicationJson            @"application/json"
#define TTVNetWork_AcceptableContentType_TextHtml                   @"text/html"
#define TTVNetWork_AcceptableContentType_TextJvascript              @"text/javascript"
#define TTVNetWork_AcceptableContentType_TextJson                   @"text/json"
#define TTVNetWork_AcceptableContentType_TextPlain                  @"text/plain"
#define TTVNetWork_AcceptableContentType_urlencoded                 @"application/x-www-form-urlencoded"

// 超时
#define TTVNewWork_timeoutInterValKey                               @"timeoutInterval"
#define TTVNetWork_TimeoutInterval                                  30.f


// enable session cookie. 是否启用SessionCookie，1：启用，0：不启用
#define TTVNetWork_EnableSessionCookie 1

// URLCache # 是否开启URLCache，1：开启，0：不开启
#define TTVNetWork_EnableURLCache 1

// 应该使用第三方框架


static NSString * const certStringForRoot = @"MIIDuzCCAqOgAwIBAgIDBETAMA0GCSqGSIb3DQEBBQUAMH4xCzAJBgNVBAYTAlBMMSIwIAYDVQQKExlVbml6ZXRvIFRlY2hub2xvZ2llcyBTLkEuMScwJQYDVQQLEx5DZXJ0dW0gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxIjAgBgNVBAMTGUNlcnR1bSBUcnVzdGVkIE5ldHdvcmsgQ0EwHhcNMDgxMDIyMTIwNzM3WhcNMjkxMjMxMTIwNzM3WjB+MQswCQYDVQQGEwJQTDEiMCAGA1UEChMZVW5pemV0byBUZWNobm9sb2dpZXMgUy5BLjEnMCUGA1UECxMeQ2VydHVtIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MSIwIAYDVQQDExlDZXJ0dW0gVHJ1c3RlZCBOZXR3b3JrIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4/t9o3K6wvDJFIf1awFO4W5AB7ptJ11/91sts1rHUV+rpDKmYYe2bg+G0jACl/jXaVehGDldamR5xgFZrDwxSjh80gTSSyjoIF87B6LMTXPb865Px1bVWqeWifrzq2jUI4ZZJ88JJ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